"use client"; import { use } from "react"; import { notFound } from "next/navigation"; import { PageHeader } from "@/components/layout/page-header"; import { LLMProviderForm } from "@/components/llm-providers/llm-provider-form"; import { Skeleton } from "@/components/ui/skeleton"; import { useLLMProvider } from "@/hooks/use-llm-provider"; import { useI18n } from "@/i18n/i18n-context"; interface PageProps { params: Promise<{ id: string }>; } export default function EditLLMProviderPage({ params }: PageProps) { const { id } = use(params); const { t } = useI18n(); const { data, isLoading, isError } = useLLMProvider(id); if (isLoading) { return (
); } if (isError || !data) { notFound(); } return (
); }